﻿@using CMSMVC4.MultiResource
@model List<CMSMVC4.Introduction>
@if (Model != null)
{
    <div id="dichvu_mid_left_lienhe">
        <div class="dichvu_mid_left_lienhe_title">
            <img src="~/Images/Css/img/Help.png" width="44" height="44" alt="help" />
            <a href="#">@Resource.Conntact_title</a>
        </div>
        <div class="dichvu_mid_left_space">
            </div>
        @foreach (var i in Model)
        {
            string url = "";
            string icon = "";
            string text = "";
            switch (i.Type)
            {
                case 0:
                    url = "skype:";
                    icon = "social_skype_box_white.png";
                    text = "Skype";
                    break;
                case 1:
                    url = "ymsgr:sendIM?";
                    icon = "Yahoo.png";
                    text = "Yahoo";
                    break;
                case 2:
                    url = "mailto:";
                    icon = "email-10-512.png";
                    text = "Mail";
                    break;
            }
            if (i.Type == 3)
            {
            <div class="dichvu_mid_left_lienhe_noidung">
                <img src="~/Images/Css/img/Phone_03.png" width="20" height="20" alt="Phone" />
                <a href="#">Phone:
                    <label style="color: #ab2507; font-weight: bold">
                        @i.Url</label>
                </a>
            </div>
            }
            else if (i.Type == 2)
            {
                <div class="dichvu_mid_left_lienhe_noidung">
                    <img src="~/Images/Css/img/@icon" width="20" height="16" alt="@text" border="0"/>
                    <a href="@url@i.Url">@text: @i.Name</a>
                </div>
                <div class="dichvu_mid_left_lienhe_space">
                </div>
            }
            else
            {
                <div class="dichvu_mid_left_lienhe_noidung">
                    <img src="~/Images/Css/img/@icon" width="20" height="20" alt="@text" border="0"/>
                    <a href="@url@i.Url">@text: @i.Name</a>
                </div>
                <div class="dichvu_mid_left_lienhe_space">
                </div>
            }
        }
    </div>
}